package com.sky.client;

import com.sky.entity.Dish;
import com.sky.result.Result;
import com.sky.vo.DishVO;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestParam;

import java.util.List;

@FeignClient(name = "sky-service-dish")
public interface UserDishClient {
    
    /**
     * 根据分类id查询菜品
     * @param dish
     * @return
     */
    @GetMapping("/user/dish/list")
    Result<List<DishVO>> listWithFlavor(@RequestParam Dish dish);
}